package nautilus.lab.model;

public class Wave {
	/* f() = A*sin(omega*t + alpha) */
	private float A; //Amplitude
	private float w; //omega
	private float alpha; //alpha
	
	private int color;
	
	public Wave(){
		A = 1;
		w = 0;
	}
	
	public Wave(float a, float omega, float aphal){
		A = a;
		w = omega;
		alpha = aphal;
	}
	
	public float getA(){
		return A;
	}
	
	public void setA(float a){
		A = a;
	}
	
	public float getW(){
		return w;
	}
	
	public void setW(float omega){
		w = omega;
	}
	
	public float getAlpha(){
		return alpha;
	}
	
	public void setAlpha(float alp){
		alpha = alp;
	}
	
	public float getAtT(float t){
		return (float)(A * Math.sin(w*t + alpha));
	}
	
	public void setColor(int clr){
		color = clr;
	}
	
	public int getColor(){
		return color;
	}
}
